Skip to main content
Version: 3.x.x

ResponseReturnErrorType


import { ResponseReturnErrorType } from "@hyper-fetch/core"

Description

Defined in adapter/adapter.types.ts:99

Preview

type ResponseReturnErrorType<GenericErrorType,AdapterType> = {
additionalData: ExtractAdapterAdditionalDataType<AdapterType> | null;
data: null;
error: GenericErrorType;
isSuccess: boolean;
status: ExtractAdapterStatusType<AdapterType> | null;
}

Structure

{
additionalData: T extends BaseAdapterType<any, any, any, infer A, any> ? A : never | null;
data: null;
error: GenericErrorType;
isSuccess: boolean;
status: T extends BaseAdapterType<any, any, infer S, any, any> ? S : never | null;
}